package com.hzlj.position.locate.common.dto.abnMissingJzry;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fz.common.base.enums.db.LikeType;
import com.fz.common.base.enums.db.QueryField;
import com.fz.common.base.enums.db.RangeType;
import com.hzlj.sqjz.jz.common.model.JzJbxx;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

import static com.fz.common.base.core.date.DateUtils.*;

/**
 * 定位分析-疑似失联人员(AbnMissingJzry)查询参数DTO
 *
 * @author makejava
 * @date 2024-06-25 14:40:44
 */
@Data
@ToString
@Accessors(chain = true)
public class AbnMissingJzryQueryParamDTO {
    /**
     * 主键编号
     */
    private String id;
    /**
     * 矫正ID(jz_jbxx)
     */
    private String jzId;
    /**
     * 所属天
     */
    @JsonFormat(locale = LOCALE, timezone = TIME_ZONE, pattern = DATE_SHORT_FORMAT)
    private Date belongDay;
    /**
     * 所属天(开始)
     */
    @QueryField(range = RangeType.GTE, value = "belongDay")
    @JsonFormat(locale = LOCALE, timezone = TIME_ZONE, pattern = DATE_SHORT_FORMAT)
    private Date belongDayGte;
    /**
     * 所属天(结束)
     */
    @QueryField(range = RangeType.LTE, value = "belongDay")
    @JsonFormat(locale = LOCALE, timezone = TIME_ZONE, pattern = DATE_SHORT_FORMAT)
    private Date belongDayLte;
    /**
     * 检测结果,dict-ABN_MISSING_CHECK
     */
    private String missingCheck;
    /**
     * 检测结果状态,dict-ABN_MISSING_CHECK_STATUS
     */
    private String missingCheckStatus;
    /**
     * 处理状态,dict-HANDLE_STATUS
     */
    private String handleStatus;
    /**
     * 机构Code(前缀匹配)
     */
    @QueryField(model = JzJbxx.class, like = LikeType.RIGHT)
    private String jgCode;
    /**
     * 姓名(全模糊匹配)
     */
    @QueryField(model = JzJbxx.class, like = LikeType.ALL)
    private String xm;
    /**
     * 是否包notice
     */
    private Boolean withNotice;
}
